package com.smartwebx.ha.dal.assign.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import com.smartwebx.ha.dal.assign.bean.HaStationGroupCfg;
import com.smartwebx.ha.dal.assign.bean.HaStationGroupCfgExample;

public interface HaStationGroupCfgMapper {
    int countByExample(HaStationGroupCfgExample example);

    int deleteByExample(HaStationGroupCfgExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(HaStationGroupCfg record);

    int insertSelective(HaStationGroupCfg record);

    List<HaStationGroupCfg> selectByExample(HaStationGroupCfgExample example);

    HaStationGroupCfg selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") HaStationGroupCfg record, @Param("example") HaStationGroupCfgExample example);

    int updateByExample(@Param("record") HaStationGroupCfg record, @Param("example") HaStationGroupCfgExample example);

    int updateByPrimaryKeySelective(HaStationGroupCfg record);

    int updateByPrimaryKey(HaStationGroupCfg record);
    
    
    @Select("SELECT CODE FROM ha_stationgroup_cfg WHERE LEVEL = #{level} AND area_id = #{areaId}")
	List<String> getAllCodeByLevelAndAreaId(@Param("level") Integer level,@Param("areaId")int areaId);
}